import BigInteger from './biginteger';

// A "null" reducer
// tslint:disable-next-line:max-classes-per-file
export default class NullExp {
	public convert(x: BigInteger) {
		return x;
	}
	public revert(x: BigInteger) {
		return x;
	}
	public mulTo(x: BigInteger, y: BigInteger, r: BigInteger) {
		x.multiplyTo(y, r);
	}
	public sqrTo(x: BigInteger, r: BigInteger) {
		x.squareTo(r);
	}
}
